home *** CD-ROM | disk | FTP | other *** search
-
-
-
- RRRRWWWWBBBBaaaaggggIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++)))) RRRRWWWWBBBBaaaaggggIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++))))
-
-
-
- NNNNaaaammmmeeee
- RWBagIterator - Rogue Wave library class
-
- SSSSyyyynnnnooooppppssssiiiissss
- #include <rw/rwbag.h>
-
-
-
- RWBag b;
- RWBagIterator it(b);
-
-
-
- DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
- Iterator for class RRRRWWWWBBBBaaaagggg, which allows sequential access to all the
- elements of RRRRWWWWBBBBaaaagggg. Note that because an RRRRWWWWBBBBaaaagggg is unordered, elements are
- not accessed in any particular order. If an item was inserted NNNN times
- into the collection, then it will be visited NNNN consecutive times. Like
- all Rogue Wave iterators, the "current item" is undefined immediately
- after construction -- you must define it by using ooooppppeeeerrrraaaattttoooorrrr(((()))) or some
- other (valid) operation. Once the iterator has advanced beyond the end
- of the collection it is no longer valid -- continuing to use it will
- bring undefined results.
-
- PPPPeeeerrrrssssiiiisssstttteeeennnncccceeee
- None
-
- PPPPuuuubbbblllliiiicccc CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr
- RWBagIterator(const RWBag&);
-
-
- Construct an iterator for an RRRRWWWWBBBBaaaagggg. After construction, the position of
- the iterator is undefined.
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr OOOOppppeeeerrrraaaattttoooorrrr
- virtual RWCollectable*
- ooooppppeeeerrrraaaattttoooorrrr(((())))();
-
-
- Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Advances the iterator to the next item
- and returns it. Returns nnnniiiillll when the end of the collection has been
- reached.
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr FFFFuuuunnnnccccttttiiiioooonnnnssss
- virtual RWCollectable*
- ffffiiiinnnnddddNNNNeeeexxxxtttt(const RWCollectable* target);
-
-
- Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Moves iterator to the next item which
- iiiissssEEEEqqqquuuuaaaallll to the object pointed to by ttttaaaarrrrggggeeeetttt and returns it. Hashing is
- used to find the target. If no item is found, returns nnnniiiillll and the
- position of the iterator will be undefined.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- RRRRWWWWBBBBaaaaggggIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++)))) RRRRWWWWBBBBaaaaggggIIIItttteeeerrrraaaattttoooorrrr((((3333CCCC++++++++))))
-
-
-
- virtual RWCollectable*
- kkkkeeeeyyyy() const;
-
-
- Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Returns the item at the current
- iterator position.
-
- virtual void
- rrrreeeesssseeeetttt();
-
-
- Redefined from class RRRRWWWWIIIItttteeeerrrraaaattttoooorrrr. Resets the iterator to its starting
- state.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-